package cn.pn.project.service;

import cn.pn.project.common.Page;
import cn.pn.project.mapper.comment.FindMapper;
import cn.pn.project.mapper.comment.CommentMapper;
import cn.pn.project.mapper.comment.FindMapper;
import cn.pn.project.mapper.comment.LikeMapper;
import cn.pn.project.pojo.comment.Comment;
import cn.pn.project.pojo.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("FindMapper")
public class FindService {
    @Autowired
    private FindMapper findMapper;

    @Autowired
    private RedisTemplate redisTemplate;

    @RequestMapping("/comment/listFindComment")
    List<Comment> selectFind() throws Exception{
        System.out.println("-----------provider的/comment/1111111111111111111111-----------");
        List<Comment> commentList=new ArrayList<Comment>();
        commentList=findMapper.listFind();
        return commentList;
    }
}